package com.xhs.utils;


import com.xhs.config.SystemConfig;
import com.xhs.vo.R;

public class RUtil {
    public static R ok(String msg, Object data){
        return new R(SystemConfig.R_OK,msg,data);
    }
    public static R ok(Object date){
        return ok("ok",date);
    }
    public static R fail(String msg){
        return new R(SystemConfig.R_FAIL,msg,null);
    }
    public static R fail(){
        return new R(SystemConfig.R_FAIL,"失败",null);
    }
}
